#pragma once
#include <Arduino.h>

class LightSensor {
public:
    explicit LightSensor(uint8_t pin);
    
    void begin();
    bool getLightState() const; // 改为明确的布尔类型
    void controlLED(uint8_t ledPin) const;
    void debugOutput() const;
    
private:
    const uint8_t pin;
    bool positiveLogic = true; // true: HIGH=有光
};
